using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Timers;
using Singular;

namespace Routine.Utilities
{
    public class Spelltimers
    {
        public static Dictionary<String, long> Timers = new Dictionary<string, long>();

        public static void Cast(String spellname)
        {
            Timers[spellname] = Environment.TickCount;
        }

        public static Boolean Expired(String spellname, long time)
        {
            if (!Timers.ContainsKey(spellname)) return true;
            if (Timers[spellname] + time > Environment.TickCount)
            {
                return false;
            }
            return true;
        }
    }
}